
class MarketIncubationListModel {
  List<MarketIncubationListModelItem>? list;
  int? pageNum;
  int? pageSize;
  int? total;
  int? totalPage;

  MarketIncubationListModel({this.list, this.pageNum, this.pageSize, this.total, this.totalPage});

  MarketIncubationListModel.fromJson(Map<String, dynamic> json) {
    list = json["list"] == null ? null : (json["list"] as List).map((e) => MarketIncubationListModelItem.fromJson(e)).toList();
    pageNum = json["pageNum"];
    pageSize = json["pageSize"];
    total = json["total"];
    totalPage = json["totalPage"];
  }

  static List<MarketIncubationListModel> fromList(List<Map<String, dynamic>> list) {
    return list.map(MarketIncubationListModel.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if(list != null) {
      _data["list"] = list?.map((e) => e.toJson()).toList();
    }
    _data["pageNum"] = pageNum;
    _data["pageSize"] = pageSize;
    _data["total"] = total;
    _data["totalPage"] = totalPage;
    return _data;
  }

  MarketIncubationListModel copyWith({
    List<MarketIncubationListModelItem>? list,
    int? pageNum,
    int? pageSize,
    int? total,
    int? totalPage,
  }) => MarketIncubationListModel(
    list: list ?? this.list,
    pageNum: pageNum ?? this.pageNum,
    pageSize: pageSize ?? this.pageSize,
    total: total ?? this.total,
    totalPage: totalPage ?? this.totalPage,
  );
}

class MarketIncubationListModelItem {
  int? collectionId;
  String? collectionName;
  String? coverImageUrl;
  int? id;
  String? incubationStatus;
  dynamic? totalPriceLimit;
  bool? isSelect;
  MarketIncubationListModelItem({this.isSelect=false ,this.collectionId, this.collectionName, this.coverImageUrl, this.id, this.incubationStatus, this.totalPriceLimit});

  MarketIncubationListModelItem.fromJson(Map<String, dynamic> json) {
    collectionId = json["collectionId"];
    collectionName = json["collectionName"];
    coverImageUrl = json["coverImageUrl"];
    id = json["id"];
    incubationStatus = json["incubationStatus"];
    totalPriceLimit = json["totalPriceLimit"];
    isSelect = false;
  }

  static List<MarketIncubationListModelItem> fromList(List<Map<String, dynamic>> list) {
    return list.map(MarketIncubationListModelItem.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["collectionId"] = collectionId;
    _data["collectionName"] = collectionName;
    _data["coverImageUrl"] = coverImageUrl;
    _data["id"] = id;
    _data["incubationStatus"] = incubationStatus;
    _data["totalPriceLimit"] = totalPriceLimit;
       _data["isSelect"] = isSelect;
    return _data;
  }

  MarketIncubationListModelItem copyWith({
    int? collectionId,
    String? collectionName,
    String? coverImageUrl,
    int? id,
    String? incubationStatus,
    dynamic? totalPriceLimit,
    bool? isSelect,
  }) => MarketIncubationListModelItem(
    collectionId: collectionId ?? this.collectionId,
    collectionName: collectionName ?? this.collectionName,
    coverImageUrl: coverImageUrl ?? this.coverImageUrl,
    id: id ?? this.id,
    incubationStatus: incubationStatus ?? this.incubationStatus,
    totalPriceLimit: totalPriceLimit ?? this.totalPriceLimit,
       isSelect: isSelect ?? this.isSelect,
  );
}